package com.feng.exma.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 课程
 * </p>
 *
 * @author feng
 * @since 2023-03-22 17:35:29
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("el_exam")
@ApiModel(value = "Exam对象", description = "课程")
public class Exam {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("考试名称")
    @TableField("title")
    private String title;

    @ApiModelProperty("考试描述")
    @TableField("content")
    private String content;

    @ApiModelProperty("1公开2部门3定员")
    @TableField("open_type")
    private Integer openType;

    @ApiModelProperty("组题方式1题库,2指定")
    @TableField("join_type")
    private Integer joinType;

    @ApiModelProperty("难度:0不限,1普通,2较难")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("考试状态")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("是否限时")
    @TableField("time_limit")
    private Integer timeLimit;

    @ApiModelProperty("开始时间")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("总分数")
    @TableField("total_score")
    private Integer totalScore;

    @ApiModelProperty("总时长（分钟）")
    @TableField("total_time")
    private Integer totalTime;

    @ApiModelProperty("及格分数")
    @TableField("qualify_score")
    private Integer qualifyScore;

    @ApiModelProperty("逻辑删除")
    @TableField("deleted")
    private Integer deleted;


}
